package wapbean;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import common.DBHandle;

public class UseraccesslogBean {
	
	private static final Logger logger=LoggerFactory.getLogger(UseraccesslogBean.class);
	
	  private String ContentID;
	  private String CreateDate;
	  private String ContentResourceID;
	  private String MobileModelID;
	  private String CategoryID;
	  private String ProviderID;
	  private String userIp;
	  private String cpId;  
	public String getCpId() {
		return cpId;
	}
	public void setCpId(String cpId) {
		this.cpId = cpId;
	}
	public String getCategoryID() {
		return CategoryID;
	}
	public void setCategoryID(String categoryID) {
		CategoryID = categoryID;
	}
	public String getContentID() {
		return ContentID;
	}
	public void setContentID(String contentID) {
		ContentID = contentID;
	}
	public String getContentResourceID() {
		return ContentResourceID;
	}
	public void setContentResourceID(String contentResourceID) {
		ContentResourceID = contentResourceID;
	}
	public String getCreateDate() {
		return CreateDate;
	}
	public void setCreateDate(String createDate) {
		CreateDate = createDate;
	}
	public String getMobileModelID() {
		return MobileModelID;
	}
	public void setMobileModelID(String mobileModelID) {
		MobileModelID = mobileModelID;
	}
	public String getProviderID() {
		return ProviderID;
	}
	public void setProviderID(String providerID) {
		ProviderID = providerID;
	} 
	public String getUserIp() { 
		return userIp;
	}
	public void setUserIp(String userIp) {
		this.userIp = userIp;
	}
	 
	
	 public void infor() {     

		   String sql ="insert into useraccesslog(ContentID,CreateDate,ContentResourceID,MobileModelID,CategoryID,ProviderID,userIp,cpId)values('"+this.ContentID+"','"+this.CreateDate+"','"+this.ContentResourceID+"','"+this.MobileModelID+"','"+this.CategoryID+"','"+this.ProviderID+"','"+this.userIp+"','"+this.cpId+"')";  
		   logger.info(sql);
		   DBHandle.updateSql(sql);       
	}
	

//	public void info() {    
//
//		   String sql ="insert into useraccesslog(ContentID,CreateDate,ContentResourceID,MobileModelID,ProviderID)values('"+this.contentId+"','"+this.createDate+"','"+this.contentResourceID+"','"+this.phoneid+"','"+this.providerID+"')";  
//		  System.out.println(sql);
//		   DBHandle.updateSql(sql);    
//	 
//	}
//	public void into() {    
//
//		   String sql ="insert into wapuserdownlog(ContentID,CreateTime,ContentResourceID,MobileModelID,ProviderID)values('"+this.contentId+"','"+this.createDate+"','"+this.contentResourceID+"','"+this.phoneid+"','"+this.providerID+"')";  
//		  System.out.println(sql);
//		   DBHandle.updateSql(sql);      
//
//	}
}
